<!-- Copyright (c) Microsoft Corporation.  All rights reserved. -->

<Window x:Class="Microsoft.WindowsAPICodePack.Samples.ImageViewerDemo.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Image Viewer WPF Demo (with Taskbar Thumbnail toolbar)" Height="600" Width="800" WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <DataTemplate x:Key="MyImageTemplate">
            <StackPanel>
                <Image Source="{Binding Path}" Width="100" Height="100"/>
                <TextBlock Text="{Binding Name}" Width="100"/>
      </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <DockPanel Name="dockPanel">
        <ListBox
      Name="ImageList" 
      DockPanel.Dock="Left" 
      ItemsSource="{Binding AllImages}" 
      ItemTemplate="{StaticResource MyImageTemplate}"/>
        <Image DockPanel.Dock="Right" Name="pictureBox1" Source="{Binding ElementName=ImageList,Path=SelectedItem.Path}">
        </Image>
    </DockPanel>

</Window>
